package com.youlu.campus.wechat.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * 微信 商户分账操作 记录
 *
 * @Description: WechatBrandProfitSharingLog
 * @Date 2025/10/23
 * @module WechatBrandProfitSharingLog
 * @author: su
 */
@Data
@Document("wechat_brand_profit_sharing_log")
public class WechatProfitSharingLog {

    @Id
    private String id;

    /**
     * 商户id
     */
    @NotBlank(message = "商户id不能为空")
    @Indexed
    private String merchantId;

    /**
     * 分账账户id
     */
    @NotBlank(message = "分账账户id不能为空")
    @Indexed
    private String accountId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
